package com.atguigu.tingshu.account.service;

import com.atguigu.tingshu.model.account.RechargeInfo;
import com.atguigu.tingshu.vo.account.RechargeInfoVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

public interface RechargeInfoService extends IService<RechargeInfo> {

    /**
     * 根据订单号查询充值信息
     *
     * @param orderNo 订单号
     * @return RechargeInfo
     */
    RechargeInfo getRechargeInfoByOrderNo(String orderNo);

    /**
     * 充值余额
     *
     * @param rechargeInfoVo 充值信息
     * @return {orderNo:"充值交易订单编号"}
     */
    Map<String, String> submitRecharge(RechargeInfoVo rechargeInfoVo);
}
